﻿@model BlogMvc.Models.LogOnModel
@{
    ViewBag.Title = "Log On";
    Layout = "~/Views/Shared/_Layout_Admin2.cshtml";
}
<style>
    input[type=text], input[type=password]
    {
        border: 1px solid #8A8575;
        height: 25px;
        width: 250px;
    }
</style>
@*<p>
    Please enter your user name and password. @Html.ActionLink("Register", "Register") if you don't have an account.
</p>*@
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm("LogOn", "Account", FormMethod.Post, new { id = "myForm", @class = "form-horizontal", @role = "form" }))
{
    @Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
    <div class="panel panel-success">
        <div class="panel-heading">
            <h2 class="panel-title">
                Account Information</h2>
        </div>
        <div class="panel-body">
            <div class="form-group">
                <div class="col-sm-2 control-label">
                    @Html.LabelFor(m => m.UserName)</div>
                <div class="col-sm-3">
                    @Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
                </div>
                <div class="col-sm-5">
                    @Html.ValidationMessageFor(m => m.UserName)
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">
                    @Html.LabelFor(m => m.Password)</div>
                <div class="col-sm-3">
                    @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
                </div>
                <div class="col-sm-5">
                    @Html.ValidationMessageFor(m => m.Password)
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">
                </div>
                <div class="col-sm-8">
                    @Html.CheckBoxFor(m => m.RememberMe)
                    @Html.LabelFor(m => m.RememberMe)
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">
                </div>
                <div class="col-sm-8">
                    <input class="btn btn-success" type="submit" value="Log On" />
                </div>
            </div>
        </div>
    </div>
}
